package com.basis.transform;

import java.util.HashMap;

public class MapResult<K, V> extends HashMap<K, V> {
	public MapResult() {
		super();
	}

	public MapResult(int length) {
		super(length);
	}

	public V get(Object key) {
		if (key instanceof String) {
			return super.get(((String)key).toUpperCase());
		}
		return super.get(key);
	}

	public V put(K key, V value) {
		if (key instanceof String) {
			return super.put((K)key.toString().toUpperCase(), value);
		}
		return super.put(key, value);
	}
}
